﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace TM.Model
{
    public class Project : ObjectBase
    {
        public Guid ID { get; set; }
        [Required(ErrorMessage = "Name of the project is required")]
        public string Name { get; set; }
        public DateTime? EstimatedStart { get; set; }
        public DateTime? ActualStart { get; set; }
        public decimal? Duration { get; set; }
        public Guid? ProjectOwnerId { get; set; }
        public string Description { get; set; }
        public DateTime CreatedDate { get; set; }
        
        #region Overrides of ObjectBase

        public override string ObjectName
        {
            get { return "Project"; }
        }

        #endregion
    }
}
